﻿using Newtonsoft.Json;
using System;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Entity.SystemManage;
using YiSha.Framework;
using YiSha.Util;

namespace YiSha.Entity.OrganizationManage
{
    [Table("SysNews")]
    [SqlSugar.SugarTable("SysNews")]
    public class NewsEntity : BaseExtensionEntity
    {
        /// <summary>
        /// 新闻标题
        /// </summary>
        public string NewsTitle { get; set; }

        /// <summary>
        /// 新闻内容
        /// </summary>
        public string NewsContent { get; set; }

        /// <summary>
        /// 新闻标签
        /// </summary>
        public string NewsTag { get; set; }
        /// <summary>
        /// 省份Id
        /// </summary>
        public string ProvinceId { get; set; }

        /// <summary>
        /// 城市Id
        /// </summary>
        public string CityId { get; set; }

        /// <summary>
        /// 区县Id
        /// </summary>
        public string CountyId { get; set; }
        /// <summary>
        /// 完整区域id
        /// </summary>
        public string AreaId { get; set; }
        /// <summary>
        /// 缩略图
        /// </summary>
        public string ThumbImage { get; set; }

        /// <summary>
        /// 新闻排序
        /// </summary>
        public int NewsSort { get; set; }

        /// <summary>
        /// 发布者
        /// </summary>
        public string NewsAuthor { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime NewsDate { get; set; }

        /// <summary>
        /// 新闻类型(1产品案例 2行业新闻)
        /// </summary>
        public int NewsType { get; set; }

        /// <summary>
        /// 查看次数
        /// </summary>
        public int ViewTimes { get; set; }

    }
}
